package com.niguang.labour.admin.enums;

import lombok.Getter;

/**
 * 工地状态枚举
 */
@Getter
public enum StatusEnum {


    hand_ok(1, "进行中"),

    hand_no(2, "已结束");

    private Integer key;
    private String value;

    StatusEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }


    public static String getName(Integer key) {
        for (StatusEnum c : StatusEnum.values()) {
            if (c.key.equals(key)) {
                return c.value;
            }
        }
        return null;
    }


}
